package org.swift.mashup.engine;

import java.io.File;
import java.util.Iterator;

import org.swift.commons.xml.Index;

public class IndexedFile implements Iterator<Index>{
	private File file;	
	private Iterator<? extends Index> indexIterator;
	
	public IndexedFile(File file, Iterator<? extends Index> indexes){
		this.file = file;		
		this.indexIterator = indexes;
	}
	
	public File getFile() {
		return file;
	}
	
	@Override
	public boolean hasNext() {
		return indexIterator.hasNext();
	}

	@Override
	public Index next() {
		return this.indexIterator.next();
	}

	@Override
	public void remove() {
		indexIterator.remove();
	}
	
}
